Checks for non-integer values entered and numbers not between 1-10