Checking state for google and facebook auth.