fix boolean validation issues