Better error message when authentication is not parsable - closes #219