Added testInputValidator

I added testInputValidator, the InputValidator class, and made the
appropriate changes in TransactionActivity and AddAccountDialog