fixed some bugs in the networking code. now its possible to login again