trying to setup ory kratos on a SSR application with a custom registration UI, how can I validate that the flow id is active using the sdk? As it requests for csrf_token which is set during the redirect and am unable to access while using htmx for partial renders