added ECData to AppDelegate; implementing login feature in ViewController