make isLogin() as static and refactor to use LoginUser class instead of passing sign up mode