test setting error messages and submitted values on forms