Function to fill the details of a member to add
: the index of members list where the details must be used
: the email of the member
: the role of the member