Added persistence to login/logout