made an interface for preview error validator.