English Punctuation Trivia

Which sentence below uses a comma(s) correctly?
Megan who lives next door, loves dogs.
Megan, who lives next door loves dogs.
Megan, who lives next door, loves dogs.
Megan who lives next door loves, dogs.