Rewrote all of the controllers, as well as the login page