Add an option to validate the current state before updating