Make sure the user has logged in before continue with integration

Fix GH-48