Check_tags now looks to see if the line is valid first