Issue #134: Displaying the right error when authentication fails