I was wondering, if you were to congratulate a girl for a great achievement, is that you giving her validation? Now what if it wasn't a great achievement, but you still congratulate?

What is the fine line that leads to giving validation?