log in log out working