Removing commented out code in inlist validator function