Add constraints to inputs