Resilience And Cybersecurity For Distribution Systems With Distributed Energy Resources