Add handling for achievements in new and existing user code.
Fixed a bug when creating a new account.