Fix for userId validation.