Handle validation error