Fixed a bug.
In Policy page when the rule is created with wrong port number it was creating
the policy and showing the error message.
Now showing the error message but not creating the policey.