not returning 1 even in the case a user with the name already exists, how to fix?
while (curr_user->next != NULL) {
        if (strcmp(name, curr_user->name) == 0) {
            return 1;
        }
        curr_user = curr_user->next;
    }