fix old code to handle "Simple Password Authentication" correctly