Add validator service class and some other fixes.

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