the validation failure is stored in a session.
you could add code to the page to clear the session after the </html> tag:
<?php if(sset($_SESSION['WAVT_chooseGallerytest_522_Errors'])) unset($_SESSION['WAVT_chooseGallerytest_522_Errors']); ?>
to insert when the name does not exist, you need to add an insert record behavior.