Refactor login flow to use purely futures.