Added url option to validate url instead of file