Prevented null entries from empty field or cancel press in network
connect and image send functions