Fix login error.
Ticket #908