add basic type validation