Created a bunch of infrastructure for logging in