Implement rudimentary login flow.