Fixed an email validation regression

Thanks Vincent Wagelaar for the report.