add reinit function to the form registrar to make testing easier