Suggested fix to failing login, patch suggestion by cvan.