fix: #20  add a login dialog box when a 401 occurs when connected, and initialize the syncService on login/logout