fixed #114 login bug in Builtin mode

after login there was a wierd things it was log out again.
found the solution after checking commits to trace the bad commit