modified validateUserIds to increase code coverage