modified baidulogin logic