Don't think of it as "restarting the program". Just use a loop to jump back to the thing you want to do repeat in order to fix the input.