correct duplicate names validation