add isLogin to JS Library.