Adding logic to store user id in session and delete when logging out