Handy utility to flatten errors object. It could be used with `onValidationFailed`, to display all errors occurred in form.