example validation function maxTwoPendingComments