fix date bug in training screen and added validation for the training