Fixed thread-local bug in sign in servlet.