Fixing a bug in the login node host retrieval logic