@SuppressWarnings("deprecation")
	public static boolean UserInputs() {
		
		user = new JTextField(15);
	    pass = new JPasswordField(15);

	    JPanel myPanel = new JPanel();
	    myPanel.add(new JLabel("Username:"));
	    myPanel.add(user);
	    myPanel.add(Box.createHorizontalStrut(15)); // a spacer
	    myPanel.add(new JLabel("Password:"));
	    myPanel.add(pass);

	    int result = JOptionPane.showConfirmDialog(null, myPanel, 
	               "Restricted Access: credential verification", JOptionPane.OK_CANCEL_OPTION);
	    if (result == JOptionPane.OK_OPTION && !user.getText().equals("")&&pass.getText()!=null) {
	       return true;
	    }else
	    	return false;
	}