fixed valid() function return bug, no need to remove $obj->valid()
now