Fix login
For some reason the JS never got loaded when it was in it's own file, therefor I moved it into the HTML where it gets called.
Also when a session id on the server was expired or something, you weren't able to log out, there is now code which fixes that.