moved the login script into the global.js file.