adds a validation rule to the input with the specified name
Parameters:
myForm.setValidation('age', 'ValidInteger');