Fixed bug for email validation