Which is the proper way of saying this sentence ? #1 or #2.

1)These creatures had a master named Jadhu, whom created them and gave them existence

2)These creatures had a master named Jadhu, who created them and gave them their existence.

Im unsure.

#2 because WHO is the subject of the verb "created." "WHOM has to be the objective, such as Who created whom?

Sra