extends validate

fix bug :
rest.class.php