checks function

checks Carry out checks on the inputs