edited destroy method in memberships to deal with last owner deleting issue