socket works with the authenticate controller