Added logout_handler