Ensure the form and lead IDs are correctly passed throughout the render functions.