Fix bad credentials behavior