add some input constraints for readonly information