Add tag validation to the constructor