public LoginRequest(Value value) {
		if(!value.hasChildren(ValueIdentifiers.getUserId()) ||
		   !value.hasChildren(ValueIdentifiers.getPasswordHash())) {
			throw new BadValueException();
		}
		this.userId = value.getFirstChild(ValueIdentifiers.getUserId()).byteArrayValue().getBytes();
		this.passwordHash = value.getFirstChild(ValueIdentifiers.getPasswordHash()).byteArrayValue().getBytes();
	}