Ensure valid email address before attempting any login logic. Closes #228