solved userId check problem