Fixed a bug where the datatype validator ignores allowEmpty and allowNull configuration