resource validation