Finish moving the authentication into it's own class.