fixed a validation bug on validFileOnly and update the migtation remove dao.