build user logout