add IP addres validation before request
fix bug in IP Address validation, add message when IP addres is invalid.