Updating the code to work with the latest login HTML.