Added session handling for logging in and out.