fix a bug in login router