Credential auto save and restore