refactored same_owner validation