fixed the post index page spacing issue and remove posts if user dosn't exisit'