fix: align form validation with Zod v4 API
validation and removing deprecated invalid_type_error options
invalid_type_error