Fixed login bug at startup if no token is available