public function linkContact()
 {
     if (!session_id()) {
         session_start();
     }
     if (isset($_SESSION['contact'])) {
         $_SESSION['identityId'] = $_SESSION['contact']['contactIdentityId'];
         StudentContact::linkContact($_SESSION['contact']['contactIdentityId'], $_SESSION['contact']['studentId'], $_POST['relationship']);
         unset($_SESSION['contact']);
         header("Location: ?controller=contact&action=viewContact");
     } else {
         StudentContact::linkContact($_POST['identityId'], $_POST['studentId'], $_POST['relationship']);
         header("Location: " . $_POST['path']);
     }
 }