Replaced cin with getline. Added input validation & confirmation.