implemented logout button action