Edit post method begin