fixing login model