@Override
	public LoginResponse login(LoginRequest request) throws IOException {
		//System.out.println(proxyCli.getReadQuorum() + " "+ proxyCli.getWriteQuorum());
		for(UserModel user : proxyCli.getUsers()) {
			if(user.getName().compareTo(request.getUsername()) == 0 && user.getPassword().compareTo(request.getPassword()) == 0) {
				user.setOnline(true);
				currentUser = user;
				return new LoginResponse(Type.SUCCESS);
			}
		}
		return new LoginResponse(Type.WRONG_CREDENTIALS);
	}