process form errors