TTE will be verifying the id on one passenger per PNR. If all the three are of same age group, then there should not be much problem. The third person can travel in the second persons' name. Though it is not legal, the option is available if you want.