frame validation for win