Add check for logging in with email address

If an unvalidated users tries to login with his email address, he will not be recognised as an unvalidated account but as an unknown account. This chang code checks if the user tries to do that and will resent an validation email