Updated to fix the logic around retrieving the account from local
storage