Check for credentials at the start of the app correctly. Loads the credentials if found correctly.