Create validator.java

Outline of validate class.