adding name and email validation