Fix login error

see #127