fix the modal validator