Added deprecation warning to uses of the validator under old methods.