Update index.php

Updated it so that logged in user can delete/edit/add a post.