repopulate forms and show error messages