insert cookiescript in login.