Added validation for name field