Fix the validation for UserId.