Another variable will hold the result of checking the account is in a valid state.

Code var isValid; to get it started.

Make sure to code var isValid;