correct validation errors