login and synchronize fix
Merge pull request #893 from ArvidNorr/loginfix

login and synchronize fix