adding validation on resource file