solved problem reset promise after logout