logout feature implemented