adds a check of data to the sanitize method
starts to add defaults to abstract the values for the plugin