Support failure redirect in gatekeeper & document login flow