Extract validator to method