The NextPage.java is created to move the user to the next page. In case if the user enters the invalid username and password , the class JOptionPane provides .