fix coding style and test if validator service exists