Added support for local accounts and multiple login-providers for one account.