using file validator