Bootstrap Modal Validation Before Close