     //read updated parameters
     strcpy(mqtt_server, custom_mqtt_server.getValue());
     strcpy(mqtt_port_config, custom_mqtt_port.getValue());
+    strcpy(mqtt_user, custom_mqtt_user.getValue());
+    strcpy(mqtt_password, custom_mqtt_password.getValue());
     // strcpy(blynk_token, custom_blynk_token.getValue());
 
     // convert port

  //end read
}


WiFiManagerParameter custom_mqtt_server("server", "mqtt server", mqtt_server, 120);
WiFiManagerParameter custom_mqtt_port("port", "mqtt port", mqtt_port_config, 5);

void initWifiManager() {


  // The extra parameters to be configured (can be either global or just in the setup)
  // After connecting, parameter.getValue() will get you the configured value
  // id/name placeholder/prompt default length
  // WiFiManagerParameter custom_mqtt_server("server", "mqtt server", mqtt_server, 120);
  // WiFiManagerParameter custom_mqtt_port("port", "mqtt port", mqtt_port_config, 5);
  // WiFiManagerParameter custom_blynk_token("blynk", "blynk token", blynk_token, 32);

  //WiFiManager
  //Local intialization. Once its business is done, there is no need to keep it around

        Serial.println(" failed");
      }
    } else {

      if(--cpt==0){
        wifiManager.startConfigPortal();
        return;
      }

      Serial.print("failed, rc=");
      Serial.print(client.state());
      Serial.println(" try again in 5 seconds");
