Add 'form' option to Bootstrap modal to prevent closing the modal by accident.