Check if user is logging in with email

Current validation fails if user tries to login with an email address. This corrects that