added some pin authorization