Added account manager and login/logout for multiple accounts