add validate method for types - this will handle type validation on values