ESP+Mqtt not working on PI All-in-all-install

Just installed on raspberry pi all in all installer previously i had a normal installation on my pi that could not update from 21.
Now i cannot make my ESP connect to the mqtt anymore but previously i deed not use a password.
My mqtt is up and running tested trough my phone and it connects and publish on the channels.
I tried different variation in the IDE sketch bat all failed to connect to the server, it connects to my network but it give me an error when attempts to connect to mqtt.
My settings are:
Mqtt (the default ones) :
username: pi
password: raspberry
The 2 ino sketches are:
#include <ESP8266WiFi.h>
#include <PubSubClient.h>

#define wifi_ssid “xxxxxxxx”
#define wifi_password “xxxxxxxx”

#define mqtt_server “”
#define mqtt_user “pi”
#define mqtt_password “raspberry”

No 2:

const char* ssid = “xxxxxxxx”;
const char* password = “xxxxxxxx”;
const char* mqtt_server = “”;
const char* mqtt_user = “pi”;
const char* mqtt_password = “raspberry”;

Any help will be much appreciated since i am out of options.
I am happy to post more of the ino code.

It look that i missed a line that i should add the username and password and now all works fine.