Added authentication for pins