Move client_config to client/config.
Extracted account validation into separate class.