Change validation on deleteById