Add declarative usage for different validator