Dbs3 input validation

Hi Yuyi,

this are the change for CRAB 2 input validation. Could you review and merge, please?

Thanks,
Manuel