Adding cin.fail()