create new post functionlity, redirecting correctly to blog/:id from edited post