Fix bug where login would only be remembered for 1 restart.