permalink validation & setting