Improved code.

Signed-off-by: crynobone <crynobone@gmail.com>
Use proper DI on validator instance.

Signed-off-by: crynobone <crynobone@gmail.com>