input restrictions