fixing login process