Implemented CredentialManager class