Added validity check to initAndValidate().