connected duplicate user check to the DB