Reset validity on input

fixes #2035