logout feature added and tested