Fix logging in and out with new Account singleton.