restrict text inputs in office CRUD