Fixed a bug that would stop the credentials from being save to the settings file.