added redirect behavior when logged in