Use attach instead of addValidator which is deprecated
Add missing closing parenthesis
Remove space after function call
Use same variable name as in the previous example
Merge branch 'hotfix/976'

Close #976
Merge pull request #977 from dhaaker/fix/input-filter

Minor fixes - input filter
Merge branch 'hotfix/977' into develop

Forward port #977