uniqueness validation and spec