fixs stdin problems on successful login, we needed to wait for the child, but I do not understand why,
although we shoul have done that anyway, I just forgot it

Signed-off-by: Mattias Andrée <maandree@operamail.com>