fixing login process.