added restriction that only authors can edit their posts