updated mnist example with custom progress function + validation accuracy