changed list validator, removed unused code from dict_validator