added blog logout functionality