I am using tkinter and have a main menu with other buttons. But I want "login" to run only when clicked from the main menu. But right now every time I run the prog