added authentication for deleting comments or posts