More login stuff, changed some things to HTML5