added some login and keychain stuff