updated frame validation