correct duplicate validation