settings-widget: show error toast when authentication fails
Show an error message using a toast in the preferences page when device authentication fails or is cancelled.
This is a refactored smaller piece of the work done in !135 (closed).
Edited by Erik Duxstad