Validate IP Address before submitting the IP