With zod and error boundaries we can provide UI feedback if form inputs do not pass validation.
Here I'll set up an Error Boundary inside the modal to to catch the error that Zod throws. You can check Zod documentation to make these errors more readable and user friendly.