Fixed login function to get the clientId
Version 0.2.1