refactored check old national id method in dde service