adjust the login template and js of product template