Fix bug in email format validation