public void login() throws Throwable {
		char[] pword_onChar = passwordField.getPassword();
		String pword = "";
		for (char k : pword_onChar) {
			pword += k;
		}
    	Users user = new Users();
    	Integer auth = new Integer(user.login(textField.getText(), pword));
    	System.out.println(auth);
        if (textField.getText().equals("") || auth.intValue()==0){
			Auth_frame.auth_prompt(null);
			dispose();
        } else {
            MainFrame m = new MainFrame(auth);
            m.defaultView();
            dispose();
        }
	}