Fixed bug with email validation.