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