fixing login dependency