Add Valid constraint to routes and menuNodes attributes

When submitting the ``StaticContent`` admin form, the routes and menus are not validated. This PR fixes it.

Another solution would be to add dynamic validation directly in the admin form, so it's applied only there.