tightening up login flow.