echo '<tr><td><b>False:</b></td><td><input type="radio" value="False" name="accountenabled"' . $checkedFalse . '></td></tr>';
    echo '<tr><td><input type="submit" value="submit" name="submit"></td></tr>';
    echo '</table>';
    echo '</form>';
} else {
    // Validate that the inputs are non-empty.
    if (empty($_POST["dname"]) or empty($_POST["alias"]) or empty($_POST["accountenabled"])) {
        echo '<p>One of the required fields is empty. Please go back to <a href="EditUser.php' . '?id=' . $_POST['id'] . '">Update User</a></p>';
    } else {
        //collect the form parameters which will be set in the case this was a post back.
        $displayName = $_POST["dname"];
        $alias = $_POST["alias"];
        $accountEnabled = $_POST["accountenabled"];
        $userEntryInput = array('displayName' => $displayName, 'userPrincipalName' => $alias . '@' . Settings::$appTenantDomainName, 'mailNickname' => $alias, 'accountEnabled' => $accountEnabled);
        // Create the user and display a message
        $user = GraphServiceAccessHelper::updateEntry('users', $_POST['id'], $userEntryInput);
        //Check to see if we got back an error.
        if (!empty($user->{'odata.error'})) {
            $message = $user->{'odata.error'}->{'message'};
            echo '<p>User update failed. Service returned error:<b>' . $message->{'value'} . '</b> Please go back to <a href="EditUser.php' . '?id=' . $_POST['id'] . '">Update User</a></p>';
        } else {
            echo '<p>';
            echo '<b>Updated the User with the following information:</b>';
            echo '<br/>';
            echo '<b>Display Name:   </b>' . $user->{'displayName'};
            echo '<br/>';
            echo '<b>User Principal Name:  </b>' . $user->{'userPrincipalName'};
            echo '<br/>';
            echo '<b>Account Enabled:  </b>';
            echo $user->{'accountEnabled'} ? 'true' : 'false';
            echo '<br/> <br/>';
    echo '<tr><td><b>Description:</b></td><td><input type="text" size="20" maxlength="15" name="description" value="' . $group->{'description'} . '"></td></tr>';
    echo '<input name="id" type="hidden" value=' . $_GET['id'] . '>';
    echo '<tr><td><input type="submit" value="submit" name="submit"></td></tr>';
    echo '</table>';
    echo '</form>';
} else {
    // Validate that the inputs are non-empty.
    if (empty($_POST["dname"]) or empty($_POST["description"])) {
        echo '<p>One of the required fields is empty. Please go back to <a href="EditGroup.php' . '?id=' . $_POST['id'] . '">Update Group</a></p>';
    } else {
        //collect the form parameters which will be set in the case this was a post back.
        $displayName = $_POST["dname"];
        $description = $_POST["description"];
        $groupEntryInput = array('displayName' => $displayName, 'description' => $description);
        // Create the group and display a message
        $group = GraphServiceAccessHelper::updateEntry('groups', $_POST['id'], $groupEntryInput);
        //Check to see if we got back an error.
        if (!empty($group->{'odata.error'})) {
            $message = $group->{'odata.error'}->{'message'};
            echo '<p>Group update failed. Service returned error:<b>' . $message->{'value'} . '</b> Please go back to <a href="EditGroup.php' . '?id=' . $_POST['id'] . '">Update Group</a></p>';
        } else {
            echo '<p>';
            echo '<b>Updated the Group with the following information:</b>';
            echo '<br/>';
            echo '<b>Display Name:   </b>' . $group->{'displayName'};
            echo '<br/>';
            echo '<b>Description:  </b>' . $group->{'description'};
            echo '<br/> <br/>';
            echo 'You can go back to <a href="DisplayGroups.php">Manage Groups</a> to continue managing Group information.';
            echo '</p>';
        }