logout button updated and functional