validate start < end for ranges