Fixed validation in GLM2 (it was not correctly called every time depending on how the GLM converged).