More login logic work.