Please refer to the definition of deposits under companies Act 2013,
it has a clause which states
Deposit includes any receipt of money by way of deposit or loan or in any other form, by a Company.
Following amount received shall not be considered Deposits under this Chapter
8) Any amount received from a person who at the time of receipt was a director provided the director furnishes a declaration that the amount given is not out of borrowed funds.
So from above it is clear that Director has to give a undertaking for the same.
Now the question is about how he declare that the money was from his own funds:-
It is not company job to acretain whether the amount received was from director own funds or borrowed funds. for that company ask for a declaration from a Director that loan given is from his own funds.