print training and validation errors

Currently, validation error is only used for plot in figure. In this commit, we try to print the validation error in terminal as well