Correct check during login with email address

When a user is not validated and tries to login with his email addres will be handled correctly.

Reference issue: https://github.com/Elgg/Elgg/issues/6294