Add Valid constraint to routes and menuNodes attributes