fixed typo.
add plugin validation for valid plugins.