Checks for correct data