fixing login engine