Updated to sync login with local authentication of logged in user