Added security markup and attempt logout