Fixed a server login bug