added checkInteger to validator

checks to see if integer