Fixed socketstream connection problem.
Fixed location change bug.
Fixed autologin cookie bug.