updated form-error definition