Login Function to verify api key and get auth token
chat