fixed problem with email validation