implemented the template for credit account