Added session management. Added conditional options in header for logged in users.