if the input is invalid.