add error msg/debug login interface
Merge branch 'shout_jacky'