Handle html auth failures 2

This closes #3