Credential loading, validation and storage