lint fixes and isLogin check
fiexs #21