Changed validation logic to check for DHCP lease before SSH connection.