Changed reference to user ID in the session