updating api password scripts to work with new authentication