activeSessionUserId code review fix