Update code to take an optinal password and redo request sending appropriately.