Fix 403 error on preferences form submit