add form helper to create and edit posts