update form errors to use bracket notation