Added back credentials submission php logic that I removed by mistake.