This ensures that the value of the quantity is always an integer in the form submission 

Should be complete this time :-)