Add a logout method to allow the user to logout.