Update isLogin() method