Fix error on wrong credentials