How do I run custom validation before something is deleted?