check for booleans in setErrorMessages