Improve error handling in modal form in order to let the possibility to display errors in a div and not update all the content of the modal