user will see errors if they try to register with invalid email or password