User *find_user(const char *name, const User *head) {
    User *curr = (User *)head;
    while (strcmp(curr->name, name) != 0 && curr != NULL){
        curr = curr->next;
    }
    if (curr == NULL){
        return NULL;
    }else{
        return curr;
    }

}
segmentation fault