Patch input validation