modal for add/edit actions, but I need it to only dismiss (close) after all validations have passed.data-bs-dismiss="modal" to them, so my question is - how would I perform certain action on button click and only dismiss the modal after all validations have passed?