Fix bug with the textcounter not showing after validation