Added session and minimal authentication.