Check for the duplicated rule when adding a new security group rule, and...

... disable the "Add rule" button if detected.