Implemented logic to update online users