added get user id function