login failed will cause an error