Sets up basic constructor. Sets up the basics for the login method.