working persistence and log out