I tried to use with and without a third frame and then try to find the option of a vertical bar, but I could not. Please help
You can insert a horizontal rule using the Menu: Select Menu
Alternatively, you could use paragraph styles:
Finally, you could just modify one of the two frames and add a border at the frame's bottom or top respectively.