public void run() {
		try {
			ObjectInputStream ois = 
				new ObjectInputStream(socket.getInputStream());
			ObjectOutputStream oos = 
				new ObjectOutputStream(socket.getOutputStream());
			Message input = null;

			while (true) {
				try {
					input = (Message) ois.readObject();
				} catch (Exception ex){
					ex.printStackTrace();
					break;
				}

				if (input != null) {
					if(input.MessageType.equals("LOGIN")){
						try{
							User usr = (User)(input.MessageData);
							System.out.println(usr.username + usr.password);
							try {
							oos.writeObject(input);
							oos.flush();
							} catch (Exception ex){
								ex.printStackTrace();
							}
						} catch (Exception ex) {
							ex.printStackTrace();
						}
					}
					break;
				} else {
					break;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				socket.close();
			} catch (IOException e) {
				System.out.println("ERROR: Cannot close socket");
				e.printStackTrace();
			}
		}
	}