continuing work on logout function