public void actionPerformed(ActionEvent e) {
		 if(e.getSource() == login_but)
		 { 
			 if (login.getText().length() != 0	&&
				password.getPassword().length != 0)
			 {
				 String pass = CallbackConstants.toMD5_String(password.getPassword().toString());
				 String log = login.getText();
				 try {
					int callback = server.Sign_in(log, pass, me);
					switch (callback)
					{
					case CallbackConstants.AUTORISATION_ERROR:
						JOptionPane.showMessageDialog(this, "ERROR: Authorisation error");
						break;
					case CallbackConstants.USER_ONLINE:
						JOptionPane.showMessageDialog(this, "ERROR: User is already online");
						break;
					case CallbackConstants.GOOD:
						JOptionPane.showMessageDialog(this, "ERROR: LOGGED IN");
						
						if (server.Sign_out(log) == CallbackConstants.GOOD)
						{
							JOptionPane.showMessageDialog(this, "ERROR: LOGGED OUT");
						}
						else
						{
							JOptionPane.showMessageDialog(this, "ERROR: FAILED");
						}
						//...
						break;
					}
						
				} catch (RemoteException e1) {
					JOptionPane.showMessageDialog(this, "ERROR: Remote invocation error"); 
					e1.printStackTrace();
				}
			 }
			 else
			 {
				 JOptionPane.showMessageDialog(this, "ERROR: Enter your login and password please.");
			 }
		 }
		 else if (e.getSource() == register_but)
		 {
			 parent.ShowRegisterPane();
		 }
	 }