add handlers to catch validation errors (specifically arrays)