Solution on an update problem on a form. In some cases, when validation fails, the error message is not shown and the form is not submitted