adding user id check