common validate