validates an email address