Wrote unique-checking validator