public User loginUser(User user){
		try {
			Socket loginSocket = new Socket(SERVER_ADDRESS_LOGIN, LOGIN_PORT);
			
			loginSocket.setSoTimeout(TIMEOUT);
			
			OutputStream outputStream = loginSocket.getOutputStream();
			ObjectOutputStream objectOutputStream = new ObjectOutputStream(
					outputStream);
			objectOutputStream.writeObject("VERIFY_LOGIN");
			objectOutputStream.writeObject(user);
			objectOutputStream.flush();
			
			InputStream inputStream = loginSocket.getInputStream();
			ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
			user = (User)objectInputStream.readObject();
			loginSocket.close();			
		}catch (SocketException e){
			new ErrorFrame("Login Server unreachable!");
		} catch (SocketTimeoutException e){
			new ErrorFrame("Connection timed out");
		} catch (Exception e) {
			e.printStackTrace();
			new ErrorFrame("User verification failed!");
		}
		return user;
	}