Added email config check