I would like to use the main space in the above to create fieldnames and entries similar to those in lesson 4.
I have added the lines

label_1 = Label(root, text="Name")
label_2 = Label(root, text="Password")
entry_1 = Entry(root)
entry_2 = Entry(root)
# widgets centered by default, sticky option to change
label_1.grid(row=0, sticky=E)
label_2.grid(row=1, sticky=E)
entry_1.grid(row=0, column=1)
entry_2.grid(row=1, column=1)

but have encountered the following error message
tkinter.TclError: cannot use geometry manager grid inside . which already has slaves managed by pack

can anyone tell me where i have gone wrong or how this can be achieved.

I would also like to incorporate an accept button to capture the entries

Would be most grateful to anyone who can help