validates the arguments if they are numeric, displays an error message if they are not numeric.