Towards Securing Systems: Leveraging Generative AI for Enhanced Vulnerability Detection and Correction