Moved setting of global to head of html.
Convert to saving the login information in a hidden secure setting of the extension.