Report question

Question: If the user logs on successfully, then I want to show the main window, if not, I want to exit the application