Adding getCredentials method