Added keychain support for secure and persistent login