integrated service for logging in and keeping connection alive