function allValsSet()
{
    // note - can't run validateTokenField because it throws an error
    $ok = false;
    if (isset($_POST['Request']) && isset($_POST['actionChoice'])) {
        if ($_POST['Request'] == 'Request ID') {
            error_log("The record was not selected");
            displayErrorMsg('You did not select a record. Please go back and choose a record in the dropdown');
        } else {
            $ok = true;
        }
    } else {
        //there was no POST DATA
        error_log('either the request or the action was not posted');
        displayErrorMsg('No action was selected');
    }
    return $ok;
}
            if (getUserAccessLevel() > 1) {
                //if the user is an approver, let the user modify the status
                $link = '<a href="' . BASE_DIR . '/reservation/activity.php?type=reservation&request=' . $rmhRequestID . '">' . $rmhStatus . '</a>';
                echo '<td>' . $link . '</td>';
            } else {
                echo '<td>' . $rmhStatus . '</td>';
            }
            echo '</tr>';
        }
        echo '</table>';
        echo '</div>';
        //     displayChooseRequestIDDropDown($foundReservations);
    }
} else {
    if (isset($_POST['form_token']) && !validateTokenField($_POST)) {
        displayErrorMsg('The request could not be completed: security check failed!');
    } else {
        // only display the search form if the reservations are not being displayed
        error_log("this is the empty else branch");
        ?>

<section class="content">
    <div>

        <form class="generic" name="SearchReservations" method="post" action="SearchReservations.php">
		<?php 
        echo generateTokenField();
        ?>
			<div class="formRow">
			<label for="searchType">Search Type</label>
            <select id="searchType" name="searchType">