support null type validation