Add a validate input method to all validators.