Adding permissions check for register to follow the spec.