Login method for SparkCloud service