Fixed login process