validate errors