email validation for password reset and profile page