fix bug where occasionally new users ended up with duplicate accounts