fixed error in email validation