-- putting an update function for Posts