Fix to route validation with object