rename check() to validate()