Kahn applied for a home improvement loan to construct an in-ground swimming pool. Union National Bank approved the loan, and construction began on Kahn's land. State Bank held a valid mortgage on this land. After the pool was completed, Union National gave Kahn the money with which he paid the contractor. Union National then perfected its interest by filing. State Bank later attempted to foreclose on its mortgage. Union National claimed the value of the pool. Is Union National entitled to recover the value of the pool?