fix client side validation for modal form