add logout feature