It seems you are simply not passing the required passwd(s) to the expect script. You do not need to put this in the expect script necessarily... for example you could pass it as a variable when you initiate the script.
Check
here for examples.
I also suggest you pick up the exploring expect book (from O'Reilly I think... there's only one).
cheers
