Implemented editing post functionality.