check and validate the posted information