minor fixes to KRL validation service to return errors via JSON properly