minimized the recursions for when checking for passwords in the logs