Implemented the authenticated policy and redirect to sign in for protected pages