add user logout functionality