 while (strcmp(curr->name, name) && curr != NULL != 0) {
        prev = curr;
        curr = curr->next;
    }
*
    iterates through the linked list until curr is NULL or the 
    name field of curr is equal to the string
    */