Fix bug with the new way to store/get cookies value.
Fix login.js the startsWith function is not available for Chrome browser.