Refactoring step. Logout works.