adding a logout success handler