Updated issue with SSH warnings always displaying

consolidated the PS1_Alerts function to avoid an scope issue