Little more handling for stuff related to logging in to a real environment.