implemented logout button