validate boolean values only