Add integer range validation to form #997