fixed a bug in validateUserIds getting a null array