Added a logout button to the code