router accepts validation as parameter now