added check to see if the information is ok

added check to see if the information is ok