Validate the max installments field on credit provider editor.

Change-Id: I4fc0eb67d35e1a7de49a7fd1f569afe05a072c10