progress on logout functionality