add jcookie login function