Add validation for plugins

#52