/**
  * Validates if there aren't any errors at the image, the rombinoscope or the password.
  **/
 public function controlGestion()
 {
     $pageController = new PageController();
     $erreur = $pageController->uploadPhoto();
     $erreur2 = $pageController->uploadTrombi();
     $erreur3 = $pageController->modifyPassword();
     if ($erreur == 0 && $erreur2 == 0 && $erreur3 == 0) {
         $accountModel = new AccountModel();
         $accountModel->uploadInfoUser();
     } else {
         header('Location: gestion.php');
     }
 }