Fix route error validation