Extract form to allow validation and render errors