Validations for login and signup page