Logout method added to webpage