modify loginBaidu or logout judge with bool