Add hooks for a pre-validate operation on updating quantity