compound interest and validations