try sending a serialised table
t = {pw = passwordInput,id = idInput)
create a table similar to that that suites your needs
stringVersion = textutils.serialize(t)
that gives you a string representation later to turn back to a table like this
tableVersion = textutils.unserialise(stringVersion)
so overall you would probably want something similar to this
Client
tableOfInfo = {password = password,id = I'd}
rednet.send(id,textutils.serialize(tableOfInfo))
Server
id,mes = rednet.receive()
info = textutils.unserialize(mes)
password = info["password"]
id = info["I'd"]