Use filtered value in validator context

* Refactor InputFilter to use objects for auto-completion and clarity
* Make route config consitent