Change how the credentials are loaded
Fix indentation