logout functionality added