Implement Login UI.

Not reviewed.