Add error formatting to authentication
Revert "Add error formatting to authentication"

This reverts commit 26540bba589ba1345289d43ec47c520e354119cd.