Correctly load credentials