Fixed a couple glitches, made the index work.

TODO: Login