implemented keyring support for config
changed login config structure