added logout feature for users