Create logout method and secure profile page.