Move get & login to promises