creat  method  validateByip