added validation for name and email