adding validation for log and toeic log.