Check datatypes when validating email addresses