On endomorphisms of the direct product of two free groups