Well, LuCI is just a front end. This part is a logic error (on the human side), not a syntax problem. But, if the network is not fully trusted, it’s actually best practice to reject input and then make rules to allow the required services.
If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! 