pre-check conditions added in method checkConditions() to validate data and internet connection