Now it only throws error if tag name is invalid, it should throw error anytime threre is something wrong
Now it only throws error if tag name is invalid,
it should throw error anytime threre is something wrong