add some code for validating the plugin's settings