Make logout button work.