redirects page to intended page before being required to sign in