Added checks for missing account data.