Added the validator plugin for validation.