Pipe in top photo is return to oil pan from air filter oil seperator.
Yes it is loose'ish but be sure you locate it into the air filter housing when refitting air filter.....there's a check valve at the pan to stop oil being pumped up to the air filter.
Second...that hard line is the oil supply line to the turbo....you can check for leaks with engine running...usually reseals okay without a new gasket.....well, mine always has.
P.S...Your hands are too clean !
.