if cookie exist and current page is not login page goTo loginpage