removed seemingly duplicated logout call