update credit form functionality to echo out response