checks on data input