updating post in database

the update option will shown only that users those are logged in..