Changed the form to edit and add post