add initial validator middleware structure