Check dev console to see data retrieved from the form when closing the modal.