Refactor owner_id validation