Fixed upgrade login bug.