added user authentication for pins