private function processData()
    {
        if ($this->context == "Data was submitted") {
            $data_model = new APIModel();
            if ($this->verifyForm() == true) {
                $result = $data_model->addPerson($this->newUsername, $this->newPassword, $this->newEmail, $this->firstName, $this->lastName, $this->birthday, $this->hometown, $this->currentAddress, $this->education);
                if ($result == "Registration successful.") {
                    $_SESSION['userid'] = $data_model->getID($this->newUsername);
                    ?>

					<meta http-equiv="refresh" content="0; url=http://localhost:8888/CS460PA2/Newsfeed/newsFeed.php" />

					<!--<meta http-equiv="refresh" content="0; url=http://localhost:8888/Quartz4/Registration/welcome.php" />-->

					<?php 
                } else {
                    print $result;
                }
            }
        }
    }