set name and email to be required