add checkLogin and checkNotLogin fun
merge origin