Adding localStorage to save posts.