added if/else statement

added if/else statement to determine that the user actually input a
number. didn’t work when tried to run.