Replaced validator decorator to ViewConfig middleware