Add restrictions on the use of edit box