Updated main with error check for improper account viewing/graceful exit.