Home area network security and accountability in the smart grid