changed login to logout