Fixed login packet bug
now we are left with a concurrency bug with direction to later be fixed.