1. Create a new JavaFX project
  2. Create a new LoginDialog like the following
  3. If user click “Submit” without entering both Email and Password, the program will show Error Alert that says “Missing email or password”.
  4. If user click “Submit” with password other than “ayclogic”, the program need to display Error Alert that says “Incorrect email and password combination.”
  5. If user click “Submit” with password “ayclogic”, the program will display Information Alert that says “You have entered your password correctly”.
  6. If user click “Cancel” button, the program will exit. To exit from the program, you can put the following code
  7. System.exit(1);