Added tests and validation for name and email