Can the account validity check and warning be done in the constructor rather than here?