reafactor validation result to map.