Inform the user if he's not logged to gmail and fix an infinite loop.