Add 'login/logout' needed to preferences.

Closes #4865.