add uniqueness validation in spree preference