fix unique value validation