Restructure to meet weibo login check