edited archives page.
checking terms are set before attempting to insert