fixing form errors