Add Account.isValid() method.

And its unit test.
Remove some unnecessary settings.