changed viewAccount to public so that works, but there's still some
problem with the logic/adding an account.