validate file name