Validated all the arguments, and display an error if the input is not numeric.