added validation; placeholder route for training