log out button works