fix double login check