check the email is valid