Add the right glm loss function