What exactly happens? The menu state is unchanged?
I suppose the login form is modal? (main window cannot be operated while the login form is displayed)
Try this for now:
- Main window opens login form
- Login form processes login and returns the result to the main window
- Main window disables its menu based on the return
What you are doing is bad object oriented design anyway