validating route segments during create