fix validation for User.