added is_valid field to BankAccount