Handle invalid inputs in console app