better auth failure debugging
check for null
Merge pull request #389 from nelenkov/dev

better auth failure debugging