Fixed login issue and /login redirect.
Fixes websocket online users list retrieval problem.