Plugin based validation mechanism