Set access permissions from the form