Make sure the user has logged in before continue with integration

Fix GH-48
Done on 1afeb96c550e3d3ef7d9a3ca4539f1ad46135d1d