add log up validate function