validate presence of name and email