Need a compatible motherboard

Solution
i5-7400 will do just fine with GTX 1050 Ti. For a MoBo, here's a small selection of both microATX and ATX MoBos you can go with,
pcpp: https://pcpartpicker.com/products/compare/pTVBD3,sDfmP6,CVX2FT,xYZ2FT/