fix form errors