Tests and store user in keychain