Maybe this can be renamed to `setUpLogin`? If the user is anonymous the event handler doesn't need to be added.