add license check to validate