Implemented a validation method for User.name (in comments)