I have modified the file default.php
if(data == 0){
    $('.btn-button').after('<span class="show-error" style="color: red;margin-left: 
    10px"> Iscrizione non riuscita! Riprova. </span>');
    setTimeout(function () {
        var this_close = $('.popup-close');
         this_close.parents().find('.sj-popup-container').remove();
        this_close.parents().find('.sj_newletter_popup_bg').removeClass('popup_bg');
    }, 3000);
}else if(data == 1){
    $('.btn-button').after('<span class="show-error" style="color: green;margin-left: 10px"> Iscrizione avvenuta con successo! </span>');
    setTimeout(function () {
        var this_close = $('.popup-close');
        this_close.parents().find('.sj-popup-container').remove();
        this_close.parents().find('.sj_newletter_popup_bg').removeClass('popup_bg');
    }, 3000);
}else if(data == 2){
    $('.btn-button').after('<span class="show-error" style="color: red;margin-left: 10px"> Iscrizione non riuscita! Riprova. </span>');
    setTimeout(function () {
        var this_close = $('.popup-close');
        this_close.parents().find('.sj-popup-container').remove();
        this_close.parents().find('.sj_newletter_popup_bg').removeClass('popup_bg');
    }, 3000);
};