added logout feature