fix display error when the username or apikey are wrong