proposal metadata edit: don't empty form on failed validation. for #228, little refactoring for #226