Make logout button functional