separated onLogin registration