void removePosts(Post *post) {
    //if the user has no posts then return because there is nothing to free.
    if (!post) {
        return;
    }

    //recursive function until we run out of posts to free. 
    removePosts(post->next);
    //free the memory for the contents of the posts
    free(post->contents);
    
    free(post);
}