Improve error message for invalid login details using yggdrasil, add debug log for unknown codes