check_data function

Test the format of data entry.