refactor validate