User *find_user(const char *name, const User *head) {
    if(head == NULL){
        printf("got in!");
        return NULL;
    }else{
        if(strcmp(head->name, name) == 0){
            return (User *)head;
        }else{
            User *curr_user = head->next;

            //traverse the list of users
            while(curr_user){
                //check if the given name and the name of the current user are the same
                if(strcmp(name, curr_user->name) == 0){
                    User *user_to_return = malloc(sizeof(User));
                    user_to_return = curr_user;
                    return user_to_return;
                }
                    curr_user = curr_user->next;
            }

        }
    }
    printf("gonna return NULL");
    return NULL;
}
Return a pointer to the user with this name in the list starting with head. Return NULL if no such user exists.