[5.0] Use Container Contract In Validation Component

More decoupling... ;)

I also added a previously missing class attribute to the `Validator` class.