redirects to create page if there are no posts