Added some basic logout functionality