add family check in validate js file