New InputHandler to validate input