Handle validation errors