Added client-side file validator