Moved login code back to MainMenu