add method validate