fix bug with duplicate user accounts