Debugged duplicate user check