diff --git a/canapEPFL/cible.php b/canapEPFL/cible.php
index d3ecb269ba0e347d13bf761f464038df5f9631ff..68c37f36d48d3409c788beee8eb76db4109f50b9 100644
--- a/canapEPFL/cible.php
+++ b/canapEPFL/cible.php
@@ -29,12 +29,12 @@
         insertFiles($pdo, $candidateData->fichiers, $candidateId, $candidateData->rootpath);
 
         if ($SENDEMAILS) {
-          // mailToResp($candidateData->prenomApprenti, $candidateData->nomApprenti, $candidateData->formation);
+          mailToResp($candidateData->prenomApprenti, $candidateData->nomApprenti, $candidateData->formation);
           mailToApprenti($candidateData->mailApprenti, $candidateData->formation);
         }
         // kill session
         $_SESSION['formError'] = false;
-        // TODO: ENABLE THIS AFTER DEV unset($_SESSION);
+        unset($_SESSION);
         include("templates/confirmationText.php");
       } else {
         $_SESSION['formError'] = true;
diff --git a/canapEPFL/form.php b/canapEPFL/form.php
index a28303eb2b9b749a03078300db03170154e903bc..c84332ac2fd2dea76366e8591330963655c303a6 100644
--- a/canapEPFL/form.php
+++ b/canapEPFL/form.php
@@ -287,14 +287,14 @@
                 </td>
             </tr>
             <?php
-            for($i = 2; $i < 4; $i++){
-              if($_SESSION['postedForm']['employeurPro'.$i]){
+            for ($i = 2; $i < 4; $i++) {
+              if ($_SESSION['postedForm']['employeurPro'.$i]) {
             ?>
             <tr>
                 <td><input type="text" class="form-control" name="employeurPro<?php echo $i ?>" placeholder="Employeur" value="<?php echo $_SESSION['postedForm']['employeurPro'.$i] ?>"/></td>
                 <td><input type="text" class="form-control" name="lieuPro<?php echo $i ?>" placeholder="Lieu" value="<?php echo $_SESSION['postedForm']['lieuPro'.$i] ?>" ></td>
-                <td><input type="text" class="form-control" name="activitePro1<?php echo $i ?>" placeholder="Activité" value="<?php echo $_SESSION['postedForm']['activitePro'.$i] ?>"></td>
-                <td><input type="text" class="form-control" name="anneesPro1<?php echo $i ?>" placeholder="de-à (années)" value="<?php echo $_SESSION['postedForm']['anneesPro'.$i] ?>"></td>
+                <td><input type="text" class="form-control" name="activitePro<?php echo $i ?>" placeholder="Activité" value="<?php echo $_SESSION['postedForm']['activitePro'.$i] ?>"></td>
+                <td><input type="text" class="form-control" name="anneesPro<?php echo $i ?>" placeholder="de-à (années)" value="<?php echo $_SESSION['postedForm']['anneesPro'.$i] ?>"></td>
             </tr>
             <?php }} ?>
             </table>
@@ -457,7 +457,7 @@
     </main>
     <script> lieu='<?php echo $_SESSION['postedForm']['lieu'] ;?>';</script>
     <?php
-      if ($_SESSION['formError']) {
+      if (isset($_SESSION['formError'])) {
         echo "<script>showOnFormReturn(lieu);</script>";
       }
       // require_once('templates/footer.php'); // (debug du $_POST)
diff --git a/canapEPFL/models/PersonnalData.php b/canapEPFL/models/PersonnalData.php
index 2651558bfdb7b78830945617c7ee1dcec2cc7206..684d754c2bdc2c9b73fafba94fa3c1da9f6bf075 100644
--- a/canapEPFL/models/PersonnalData.php
+++ b/canapEPFL/models/PersonnalData.php
@@ -64,9 +64,7 @@ class PersonnalData {
         $this->langueMaternelleApprenti = $postedData['langApp'];
         $this->setLanguages($postedData['languesApp']);
         $this->majeur = $postedData['maj'] == "true" ? 1 : 0;
-        if($this->majeur){
-            $this->setRepresentants();
-        }
+        if (!$this->majeur) { $this->setRepresentants(); }
         $this->setScolarite();
         $this->setActivitesPro();
         $this->setStages();
@@ -98,7 +96,7 @@ class PersonnalData {
     private function setActivitesPro () {
         for ($i = 1; $i <= 3; $i++) {
             if (array_key_exists('employeurPro'.$i, $this->postedData)) {
-                array_push($this->activitesProfessionnelles,array("employeur"=>$this->postedData['employeurPro'.$i],"lieu"=>$this->postedData['lieuPro'.$i],"activite"=>$this->postedData['activitePro'.$i],"annees"=>$this->postedData['anneesPro'.$i]));
+                array_push($this->activitesProfessionnelles, array("employeur"=>$this->postedData['employeurPro'.$i],"lieu"=>$this->postedData['lieuPro'.$i],"activite"=>$this->postedData['activitePro'.$i],"annees"=>$this->postedData['anneesPro'.$i]));
             }
         }
     }
diff --git a/canapEPFL/templates/head.php b/canapEPFL/templates/head.php
index a36209e16361b761b7ef4ac85a35090d220a772c..1639fee1e890710af5bd45e719291deb740c5fa5 100644
--- a/canapEPFL/templates/head.php
+++ b/canapEPFL/templates/head.php
@@ -21,8 +21,8 @@
   gtag('config', 'UA-130041798-1', { 'anonymize_ip': true });
 </script>
 <?php
-  // ini_set("display_errors", 0);
-  // error_reporting(0);
+  ini_set("display_errors", 0);
+  error_reporting(0);
   // ini_set("display_errors", 1);
   // error_reporting(E_ALL);
   require_once('configs/config.php');
diff --git a/canapEPFL/templates/mails/apprenticeMailTemplate.html b/canapEPFL/templates/mails/apprenticeMailTemplate.html
index ad90a9a16ed28aa9fd67a04df17d115738b65ccf..1b127d335fcf4b4dc355e0957c25aefbec4db023 100644
--- a/canapEPFL/templates/mails/apprenticeMailTemplate.html
+++ b/canapEPFL/templates/mails/apprenticeMailTemplate.html
@@ -176,8 +176,7 @@
 </head>
 
 <body style="margin: 0; padding: 0;">
-  <!-- HEADER -->
-  <table border="0" cellpadding="0" cellspacing="0" width="100%">
+  <!-- <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
       <td bgcolor="#ffffff">
         <div align="center" style="padding: 0px 15px 0px 15px;">
@@ -186,7 +185,7 @@
               <td style="padding: 20px 0px 30px 0px;" class="logo">
                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
                   <tr>
-                    <!-- Mettre a jour les liens quand ils seront accessibles-->
+                    Mettre a jour les liens quand ils seront accessibles
                     <td bgcolor="#ffffff" width="100" align="left"><img alt="Logo" src="https://canap.epfl.ch/assets/img/FA.png" width="200"
                         style="display: block; font-family: Helvetica, Arial, sans-serif; color: #666666; font-size: 16px;"
                         border="0"></a></td>
@@ -201,7 +200,7 @@
         </div>
       </td>
     </tr>
-  </table>
+  </table> -->
 
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
diff --git a/canapEPFL/templates/viewPostulationTables/proActivitiesInfosTable.php b/canapEPFL/templates/viewPostulationTables/proActivitiesInfosTable.php
index e728f9b61e47c6cf90d5fe699f991e80243eb235..1f5b502247d51e8553605a3c15a6d9e92fa88dc6 100644
--- a/canapEPFL/templates/viewPostulationTables/proActivitiesInfosTable.php
+++ b/canapEPFL/templates/viewPostulationTables/proActivitiesInfosTable.php
@@ -5,7 +5,7 @@
   Activités professionnelles
 </button>
 <div class="collapse collapse-item collapse-item-desktop" id="collapse-pro">
-<?php if (count($proactivities) < 1) { ?>
+  <?php if (count($proactivities) < 1) { ?>
     <p style="text-align: center;">Aucune donnée fournie</p>
   <?php } ?>
   <?php foreach ($proactivities as $key => $activity) { ?>
diff --git a/canapEPFL/templates/viewPostulationTables/scolaritiesInfosTable.php b/canapEPFL/templates/viewPostulationTables/scolaritiesInfosTable.php
index 30abbe2ddfe4ed71c6b7fe2150791b1994a9222c..61c8a00b9672458c152d23fb7d07adf699a05e5e 100644
--- a/canapEPFL/templates/viewPostulationTables/scolaritiesInfosTable.php
+++ b/canapEPFL/templates/viewPostulationTables/scolaritiesInfosTable.php
@@ -7,29 +7,29 @@
 <div class="collapse collapse-item collapse-item-desktop" id="collapse-scolarite">
   <?php if (count($scolarites) < 1) { ?>
     <p style="text-align: center;">Aucune donnée fournie</p>
-    <?php foreach ($scolarites as $key => $scolarity) { ?>
-      <table class="table table-boxed mb-5">
-        <thead>
-          <tr>
-            <th>Scolarité <?= $key + 1; ?></th>
-            <th>Données</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr>
-            <td>Ecole, lieu</td>
-            <td><?= $scolarity['scolarity_school'] . ", " . $scolarity['scolarity_location'] ?></td>
-          </tr>
-          <tr>
-            <td>Niveau</td>
-            <td><?= $scolarity['scolarity_level'] ?></td>
-          </tr>
-          <tr>
-            <td>Années</td>
-            <td><?= $scolarity['scolarity_years'] ?></td>
-          </tr>
-        </tbody>
-      </table>
-    <?php } ?>
+  <?php } ?>
+  <?php foreach ($scolarites as $key => $scolarity) { ?>
+    <table class="table table-boxed mb-5">
+      <thead>
+        <tr>
+          <th>Scolarité <?= $key + 1; ?></th>
+          <th>Données</th>
+        </tr>
+      </thead>
+      <tbody>
+        <tr>
+          <td>Ecole, lieu</td>
+          <td><?= $scolarity['scolarity_school'] . ", " . $scolarity['scolarity_location'] ?></td>
+        </tr>
+        <tr>
+          <td>Niveau</td>
+          <td><?= $scolarity['scolarity_level'] ?></td>
+        </tr>
+        <tr>
+          <td>Années</td>
+          <td><?= $scolarity['scolarity_years'] ?></td>
+        </tr>
+      </tbody>
+    </table>
   <?php } ?>
 </div>
\ No newline at end of file