Revert "input validation works much better while using input event to do the manipulation"

This reverts commit 78b92ab5e7ed5d6b051cbf364883d03dc6b9b210.