fixed logout feature