Fixed login process.