Reworking login/registration flow.