added fields form fields for editing existing posts
finished CRUD on the controller