fix error messages for forms