fix a bug in login web service