Fixed various login integration issues, and syntax errors in HTML.