Fixed login: request query parameters were taken from the wrong variable