Setup the authentication module that keeps track of the login state