Store user ID in session when logged in.