Add custom function for determining valid ip in subet