added user duplicate check