What is the || '' for?  If their pwd is undefined they should just be rejected?