refactoring

- extract method validate