Fix registration context to make form available after rendering.