Add ability to log out, and make next_page work.