ch 9: redirect after login/register