Record validation failures in history table