set credits to 0 if no value entered