allowNull validator is deprecated