Adding validation_errors_array() helper function.