Ajaxed bad login.  Refactored user auth. Moved elements from index to be headers and footers in layout.