Logout mechanism and button added.