Upgraded the ability of the cin statements to handle bad input.