Added implementation to send credentials dynamically