valid the details