New validation error handler added