Add validation for plugins