changed interface; accept $input using setInput.
use getInput to simplify the validate method.
introduce as SimpleValidatorAbstract as simple validation.