validate the right data