something related .get function i think : so basically i can't get my code running , when i use the next function to check if the entered password and name are right if always say wro no ng values entered, basically the variable entry_1 and entry_2 are not storing the input text and i want a solution for that. how to use .get function to solve this i have no idea 

i have tried assign entry_1 and entry_2 to a variable didnt work out.


    from tkinter import *
    
    root = Tk() # creates a window and initializes the interpreter
    root.geometry("500x300")
    
    name = Label(root, text = "Name")
    password = Label(root, text = "Password")
    entry_1 = Entry(root)
    entry_2 = Entry(root)
    
    
    
    name.grid(row = 0, column = 0, sticky = E) # for name to be at right use sticky = E (E means east)
    entry_1.grid(row = 0, column =1)
    x = "Taha"
    password.grid(row = 1, column = 0)
    entry_2.grid(row = 1, column =1)
    y = "123"
    c = Checkbutton(root, text = "Keep in logged in").grid(columnspan = 2 ) # mergers the two columns
    
    
    def next():
        if a == entry_1 and b == entry_2:
            print ("Proceed")
        else:
            print("wrong values entered")
    
    def getname():
        return name
    
    
    Next = Button(root, text = "Next", command=next).grid(row = 3, column = 1)
    
    
    
    
    root.mainloop() # keep runing the code
    
    i want it to say proceed once correct values are entered

