User Input Validation Function

This function validates the user's input by validating that a number
was entered and that the number is within the range of 1 - 10.