private void initialize() {
		frame = new JFrame();
		frame.setBounds(400, 300, 200, 170);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		panel.setSize(200, 150);
		frame.getContentPane().add(panel, BorderLayout.CENTER);
		panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
		
		txtpnLogin = new JLabel();
		txtpnLogin.setText("Login");
		panel.add(txtpnLogin);
		
		textField = new JTextField();
		textField.setLocation(new Point(100, 0));
		panel.add(textField);
		textField.setColumns(10);
		
		txtpnPassword = new JLabel();
		txtpnPassword.setText("Password");
		panel.add(txtpnPassword);
		
		passwordField = new JPasswordField();
		panel.add(passwordField);
		
		btnLogIn = new JButton("Log in");
		btnLogIn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				String login = textField.getText();
				username = login;
				UserManagerDAL uml = new UserManagerDAL();
				userId = uml.getUserIdByUsername(username);
				
				char[] haslo = passwordField.getPassword();
				if(!UserManagerDAL.validateLogin(login, haslo)) {
					JOptionPane.showMessageDialog(null, "Incorrect login or password");
				} else {
					JOptionPane.showMessageDialog(null, "Correct log in");
					ShareMarketLogic sml = new ShareMarketLogic();
					if(sml.isNotificationNeed(userId)) {
						drawNotificationForm();
						sml.setTransactionToNotifyListAsRead(userId);
					} else {
						drawMenuForm();
					}
				}
			}
		});
		panel.add(btnLogIn);
		
		btnRegistration = new JButton("Registration");
		btnRegistration.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				if(logIn) {
					cleanForm(); 
					drawRegistrationForm();
					logIn = false; 
				} else {
					logIn = true; 
					UserManagerLogic uml = new UserManagerLogic();
					if(textField.getText().equals("") || passwordField.getText().equals("")) {
						JOptionPane.showMessageDialog(null, "Fill login and password fields!");
						drawRegistrationForm();
						return;
					}
					
					uml.AddUser(textField.getText(), 
							passwordField.getText(), 
							textFieldName.getText(),
							textFieldMail.getText(),
							"10000");
					JOptionPane.showMessageDialog(null, "Registration success!");
					cleanForm(); 
					drawLoginForm();
				}
			}
		});
		panel.add(btnRegistration);
	}