The state legislature made this practice illegal in 1917, in a law that also provided for the creation and marking of a state trunk highway system, that would be required to provide access to every county seat and all towns with a population over 5,000, and was limited to a total length of 5000 miles .