Bugfix on login and setting retrieve,

saving still a bug