@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource() == view.getLoginView().getLoginButton()){
			try{
				String username = view.getLoginView().getUsername().getText();
				String password = view.getLoginView().getPassword().getText();
				
				DAOFactoryLogin daoFactoryLogin = (DAOFactoryLogin) view.getLoginView().getLoginMethodJComboBox().getSelectedItem();
				
				if(model.login(username, password, daoFactoryLogin)){
					view.getFormsWindow().setVisible(false);
					view.getMainWindow().setVisible(true);
				}
				else{
					JOptionPane.showMessageDialog(null, "Username/Password incorrect");	
				}
			}
			catch(Exception ex){
				ex.printStackTrace();
			}
				
		}
		else{
			JOptionPane.showMessageDialog(null, "Unimplemented function");
		}
		
	}