fixing error when email not an email