[3.1.0] Implement Duplicate validator, also modify some design things