public  boolean login(User u) {
		boolean result = false;
		
		

		try {
			
			ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
			ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
			oos.writeObject(u);
			Message msg = (Message)ois.readObject();
			if(msg.getMessageType()==1) 
				result = true;

		} catch (IOException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} finally {

		}
		return result;
	}