fix email validation problem