Fixed logic dealing with creating an account when the name already
exists