Added account manager and logout functionality.