I can’t seem to find whats wrong with my code

I am using xampp for the project,and this my php code for the registration side of things, if anyone can help i would appreciate it.

ERROR MESSAGE: Parse error: syntax error, unexpected ‘}’ in E:xampplitehtdocsProjetoPaphtml&phpincludessigned.inc.php on line 44

  <?php
if (isset($_POST["submit"])) {

  $username = $_POST["Username"];
  $email = $_POST["email"];
  $password = $_POST["Password"];
  $passwordrepeat = $_POST["passwordrepeat"];
  $dataNASCI = $_POST["dataNASCI"];
  $accept = $_POST["accept"];
require_ONCE 'DBH.inc.php';
require_ONCE 'functions.inc.php';

if (emptyinputsignup($username, $email, $password, $passwordrepeat,  $dataNASCI, $accept) !== false) {
    body("location: ../create_account.php?error=emptyinput");
    exit();
   }
if (invalidUsername($username) !== false) {
       body("location: ../create_account.php?error=emptyinput");
       exit();
   }
   if (invalidEmail($email) !== false) {
       body("location: ../create_account.php?error=emptyinput");
       exit();
      }
      if (invalidPassword($password) !== false) {
          body("location: ../create_account.php?error=emptyinput");
          exit();
         }
         if (passwordMatch($password, $passwordrepeat) !== false) {
             body("location: ../create_account.php?error=Passwordsnãocoincidem");
             exit();
            }
            if (invalidDataNASCI($dataNASCI) !== false) {
                body("location: ../create_account.php?error=emptyinput");
                exit();
               }
                if (emailExists($conn, $email, $username) !== false) {
                    body("location: ../create_account.php?error=Emailalreadyinuse");
                  exit();
                  }
  createuser($conn, $username, $email, $password, $dataNASCI);
}
else {
  body("location: ../create_account.php");
  exit();
}

?>