Update Accounts.java

Finished code to check the account.