PLD: pull out username and pass outside lambda