logout promise in viewModels