Fix error in upstream check logic, improve readability and clarity of user prompts, remove user credential placeholders, and general code cleanup.