getCurrentUserId helper used in usercontroller