how to add server-side validation to a custom form that has fields from multiple models, you can follow these steps: