Adds enabling-disabling button validation.