You should re-check this in other values in the form submission as well.
Otherwise user will be able to save invalid value. I'm not sure what will happen in case of 0...