Add logging in validate command