Move login handling into <cr-login-handler> and redirect immediately.