Select the provider selected in the login widget.

In the preferences window, now we select the current provider from the
login widget, no matter if the user is logged in or not.

[Closes #4490]