}
if ($emailAddress == null) {
    echo "Email Address is null";
    $validInputs = false;
}
if ($passwordReenter == null) {
    echo "Password repeat is null";
    $validInputs = false;
}
if ($password == null) {
    echo "Password is null";
    $validInputs = false;
}
if ($validInputs) {
    echo "All inputs valid<br/>";
    $memberID = MemberController::createMemberAccount($firstName, $lastName, $emailAddress, $password, $gender, $ageRange, $locationCountry, $locationState, $locationCity, $locationRegion, $dbConnection);
    echo "Member ID {$memberID}<br/>";
    if ($memberID != -1) {
        echo "Attempting login<br/>";
        echo LoginController::login($emailAddress, $password, $dbConnection);
    }
    echo "<br/>";
    echo "Logged in member ID: " . LoginController::getLoggedInMemberID() . "<br/>";
    echo "end";
}
//     if ($memberID != null)
//     {
//         $inputMemberID = $_POST[MemberEditConstants::MEMBER_ID_INPUT];
//         $encryptedID = $_POST[MemberEditConstants::ENCRYPTED_ID_INPUT];
//         if (MemberController::processMemberSecurityCheck($memberID, $inputMemberID, $encryptedID))
//         {