fix server crash when a login attempt is made with an incorrect username
fix server crash when a login attempt is made with an incorrect username

MyHomeworkSpace/api-server,MyHomeworkSpace/api-server,MyHomeworkSpace/api-server