validation for users logging in/signing up