added update button to the post view if logged in as the author