fixing login resource