Pass form in case it's used by the rendering template.