fixes form error messages