CRATEIT-45 Fix error messages not being cleared in modal issue