add tool.js to login.js.