Refactor address validate to avoid exceptions.