rename checkPassword to checkEmail