Added validation for name