udpated file validator