minor update to duplicate account check