update user_check to add UID search option