getting a 401 when trying to authenticate with invalid credentials