Added code for user/tag logout