prefetch account and login status.