renamed login to logout