Working Ajax Loading login page

Allows user to login successfully without a refresh of the page. Also updates the page to the correct one.