private void setAction()
	{
		loginButton.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				String username = inputUser.getText();
				String password = inputPass.getText();
				User user = null;
				if(username.length()!=0 && password.length()!=0)
				{		
					try {
						user = model.verifyLogin(username, password);
					} catch (IOException e) {
						e.printStackTrace();
					}
					if(user != null)
					{
						goToQuestionListMenu(user);
					}else
					{
						new messagebox.ShowPopup("Username or Password incorrect.","Error!!!!!",0);
						view.close();
					}
				}
				inputUser.setText(null);
				inputPass.setText(null);

			}
		});


		exitButton.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				view.close();
			}
		});
		

	}