Pagination the announcements view, and fix error if the user is an anonymous user