The Z390 will be more than enough for a i5, and is good for the i7 too. But keep in mind the Z390 can support the 8th/9th gen i5/i7 only. If you don't want to upgrade to i7, may consider to buy Z370/Z270, but it is up to you. One more double check the MB/cpu compatibility first, before you buy the MB.
Also if you will buy the Z390, you may or may not have the problem for the AIO fan to fit into the top panel of the case, check out my answer in other thread, you may have the idea what I mean.
Here is the linker:
https://forums.tomshardware.com/threads/fan-not-fitting.3401220/