Fix error when password inside an object