Changed validator to be public accessable.