traininglogentry on index page, moved error handler to end of state handler