changing validators to be classmethods