loading credentials on startup