Yes. You are required to carry valid ID proof of any one passenger when you travel.
Here is the list of ID proofs which railways considers valid:
Passport
Driving License
PAN Card
Voters ID card
Photo ID card issued by the Central or State Govt. to their employees