Made the login using emails slightly more robust

We want to make sure the part before @ actually exists or people might
do strange things.