1. Corrected the code to load credentials.