Make the private validate method in Bank Account more generic