Allow login and retrieval of API token