display an error if the input is not numeric