Added functionality to drop login attempt when network is unavailable to device