Added validation code
Added logreg
Added logreg