update form with data to show errors properly