BEFORE ADDING TEXT FIELD TO POSTS