error checking on required param fields.