add log and passwd