input validity check for dll