Fixed validation for Nette 2.1 [closes #2]