Updated email-validation logic.