How to add validations on the username/userid field on the login page