Replaced custom InvalidCredentialsEx with BadCredentialsEx.