YY added name uniqueness validation.